<?php TPL::output('admin/global/header.tpl.htm'); ?>
<?php TPL::output('admin/global/nav_menu.tpl.htm'); ?>

<div class="aw-content-wrap">
    <div class="mod">
        <div class="mod-head">
            <h3>
                <span class="pull-left"><?php _e('用户邀请下线'); ?></span>
            </h3>
        </div>
        <div class="mod-content">
            <div class="tab-pane active">
                <div class="table-responsive">
                    <form action="admin/user/invite_list" method="post" onsubmit="return false;">
                        <table class="table table-striped table-list">
                            <thead>
                            <tr>
                                <th style="text-align: center">用户名</th>
                                <th style="text-align: center">奖励</th>
                                <th style="text-align: center">级别</th>
                                <th style="text-align: center">邀请的用户注册时间</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php if($this->invite_list){?>
                            <?php foreach($this->invite_list as $key => $val){?>
                            <tr>
                                <td style="text-align: center"><?php if($val['coin_type']==1){?><?php echo $val['first_name'];?><?php }else if($val['coin_type']==2){?><?php echo $val['second_name'];?><?php }?></td>
                                <td style="text-align: center"><?php echo $val['coin'];?></td>
                                <td style="text-align: center"><?php if($val['coin_type']==1){?><?php echo 一级;?><?php }else{?><?php echo 二级;?><?php }?></td>
                                <td style="text-align: center"><?php echo date('Y-m-d H:i:s',$val['time']);?></td>
                            </tr>
                            <?php }?>
                            <?php }?>
                            </tbody>
                        </table>
                        <?php if($this->invite_list){?>
                        <div class="mod-table-foot">
                            <span><?php _e('一级邀请数量：'); ?><?php echo $this->first_invite_num;?></span><span style="padding-left:50px;"><?php _e('二级邀请数量：'); ?><?php echo $this->second_invite_num;?></span>
                        </div>
                        <?php }?>
                    </form>
                </div>
                <div class="mod-table-foot">
                    <span class="pull-left mod-page"><?php echo $this->pagination; ?></span>
                </div>
            </div>
        </div>
    </div>
</div>


<?php TPL::output('admin/global/footer.tpl.htm'); ?>